package com.tiansu.reborn.wanda.modules.executor.controller;

import com.tiansu.reborn.wanda.modules.executor.entity.BillDayEntity;
import com.tiansu.reborn.wanda.modules.executor.service.BillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
public class BillController {


    @Autowired
    private BillService billService;


    @GetMapping("/index/{index}")
    public String index(@PathVariable("index") String index){
        return index;
    }


    @PostMapping("/repair")
    @ResponseBody
    public  Boolean index(BillDayEntity billDayEntity){

        billService.RepariBill(billDayEntity);
        return true;
    }




}

